{include file="public/header"}
<div class="page-content">
    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
        <div class="widget am-cf" style=" height: 500px;">
            <a href="{:url('Sclass/listsclass')}">
                <i title="返回" class="iconfont"
                   style="font-size:2.5rem;float: left">&#xe697;</i></a>
            <form class="stdform" action="{:url('Sclass/doedit')}" method="post">
                <div class="widget-body">
                    <fieldset>
                        <div class="widget-head am-cf">
                            <div class="widget-title am-cf">修改二级分类</div>
                        </div>
                        <div class="layui-form-item">
                            <input type="hidden" name="id" class="layui-input" value="{$sinfo.id}">
                            <label class="am-u-sm-3 am-u-lg-2 layui-form-label">分类名称 </label>
                            <div class="am-u-sm-9">
                                <input value="{$sinfo.sname}" class="layui-input layui-input-inline" type="text" name="sname">
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="am-u-sm-3 am-u-lg-2 layui-form-label">排序编号</label>
                            <div class="am-u-sm-9 ">
                                <input type="text" name="orderno" class="layui-input layui-input-inline" value="{$sinfo.orderno}">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="am-u-sm-3 am-u-lg-2 layui-form-label">请选择分类</label>
                            <div class="am-u-sm-9 ">
                                <select name="pid" id="selection2" class="layui-input layui-input-inline" style="width: 100px">
                                    <!-- <option value="">请选择分类</option> -->
                                    {foreach name="bdata" item="vo"}
                                    {if condition="$sinfo.pid eq $vo.id"}
                                    <option selected value="{$vo.id}">{$vo.bname}</option>
                                    {else}
                                    <option value="{$vo.id}">{$vo.bname}</option>
                                    {/if}
                                    {/foreach}
                                </select>
                            </div>
                        </div>

                        <div class="am-form-group stdformbutton">
                            <div class="am-u-sm-9 am-u-sm-push-3 am-margin-top-lg">
                                <button type="submit"class="j-submit am-btn am-btn-secondary">提交</button>
                                <button type="reset" class="am-btn am-btn-default">重置</button>
                            </div>
                        </div>
                    </fieldset>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
</html>
